package dao;

import java.sql.SQLException;
import java.util.List;

import model.Borrow;

public interface BorrowDao {
	//获取所有借书情况
	List<Borrow> getAllBorrow() throws SQLException;
	
	//借书
	boolean borrowBook(Borrow borrow) throws SQLException;
	
	//管理员同意借书
	boolean adminAgreeBorrow(Borrow borrow) throws SQLException;
	
	//根据用户查询借书情况
	List<Borrow> getBorrowByUserId(String userid) throws SQLException;
	
	//还书
	boolean returnBook(Borrow borrow) throws SQLException;

}
